import { request } from '../utils/request';

export async function queryListData(params) {
  return request('/api/Warehouse/List', {
    method: 'POST',
    body: params,
  });
}

export async function queryGetData(params) {
  return request('/api/Warehouse/Get', {
    method: 'POST',
    body: params,
  });
}

export async function addData(params) {
  return request('/api/Warehouse/Add', {
    method: 'POST',
    body: params,
  });
}

export async function updateDataInfo(params) {
  return request('/api/Warehouse/UpdateInfo', {
    method: 'POST',
    body: params,
  });
}

export async function updateDataDefault(params) {
  return request('/api/Warehouse/SetDefault', {
    method: 'POST',
    body: params,
  });
}

export async function updateDataStatus(params) {
  return request('/api/Warehouse/UpdateStatus', {
    method: 'POST',
    body: params,
  });
}

export async function removeData(params) {
  return request('/api/Warehouse/Remove', {
    method: 'POST',
    body: params,
  });
}

/**
 * 占位函数
 *
 * @export
 * @returns
 */
export async function empty() {
  return {};
}
